package edu.vital.energy.longevity.ch05.domain;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;
import java.util.*;

   // 用于将Person类作为Bean注入到Spring容器中
 // 将配置文件中以person开头的属性注入到该类中
public class Person {
    private int id;            //id
    private String name;      //名称
    private List hobby;       //爱好
    private String[] family; //家庭成员
    private Map map;
    private Pet pet;          //宠物

//
//    @Override
//    public String toString() {
//        return "Person{" +
//                "id=" + id +
//                ", name='" + name + '\'' +
//                ", hobby=" + hobby +
//                ", family=" + Arrays.toString(family) +
//                ", map=" + map +
//                ", pet=" + pet +
//                '}';
//    }
}

